#if !defined(AFX_ROLEEDITEDDLG_H__280E0048_0B83_4F6D_9642_F4489F756DE6__INCLUDED_)
#define AFX_ROLEEDITEDDLG_H__280E0048_0B83_4F6D_9642_F4489F756DE6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// RoleEditedDlg.h : header file
//

#include "resource.h"
#include "ListCtrlIpAccessStatesEdit.h"

/////////////////////////////////////////////////////////////////////////////
// CRoleEditedDlg dialog

class CRoleEditedDlg : public CDialog
{
// Construction
public:
	CRoleEditedDlg(CWnd* pParent = NULL);   // standard constructor

// Attributes
protected:
	int m_iCurSelRoleSubItem;

// Dialog Data
public:
	//{{AFX_DATA(CRoleEditedDlg)
	enum { IDD = IDD_ROLE_CHANGING };
	CButton	m_cbtnOk;
	CButton	m_cbtnReset;
	CEdit	m_cedtRoleName;
	CListCtrlIpAccessStatesEdit	m_clstRadiusIPs;
	CString	m_strSelRoleName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRoleEditedDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void FillRoleNameEdit(const int iSubItem);
	void Rename();
	BOOL IsNameExist(const CString strRoleName);
	void OnRoleNameChanged();

	// Generated message map functions
	//{{AFX_MSG(CRoleEditedDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnKillfocusEdtRoleName();
	afx_msg void OnClickLstRadiusIPs(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBtnReset();
	virtual void OnOK();
	//}}AFX_MSG
	afx_msg void OnRoleChanged(WPARAM wParam, LPARAM lparam);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ROLEEDITEDDLG_H__280E0048_0B83_4F6D_9642_F4489F756DE6__INCLUDED_)
